package com.diyunapp.xilinapp.selfdefine;

import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.diyunapp.xilinapp.R;

/**
 * Created by NIDAYE on 2016/6/28.
 */
public class MyViewHolder extends RecyclerView.ViewHolder {
    public ImageView goods_picture_iv;
    public TextView goods_title_tv;
    public TextView goods_price_tv;
    public TextView goods_salenumbs_tv;

    public MyViewHolder(View itemView, int type) {
        super(itemView);
        //当View是itemview时再执行此初始化操作
        Log.i("zhangxiaoxidebug", "MyViewHolder out");
        if (type == 1) {
            Log.i("zhangxiaoxidebug", "MyViewHolder");
            goods_picture_iv = (ImageView) itemView.findViewById(R.id.yourlike_list_img);
            goods_title_tv = (TextView) itemView.findViewById(R.id.yourlike_list_title_tv);
            goods_price_tv = (TextView) itemView.findViewById(R.id.yourlike_list_price_tv);
            goods_salenumbs_tv = (TextView) itemView.findViewById(R.id.yourlike_list_salenums_tv);
        }

    }
}
